<?php
//Knowledge Management Controller By Teerapong Singthong.
class Pdf extends Controller{
	function __construct(){
		parent::Controller();
	}
	function index(){
		$this->load->library('fpdf');
		define('FPDF_FONTPATH',$this->config->item('fonts_path'));
		$this->fpdf->Open();
		$this->fpdf->AddPage();
		$this->fpdf->SetFont('Arial','B',14);
		$this->fpdf->SetY(30);
		$this->fpdf->Cell(40,10,'Hello World!');
		$this->fpdf->Output('output.pdf','D');
	}
}